/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package eu.bopet.jocadv.gui;

import java.util.Arrays;

/**
 *
 * @author bocskapeter
 */
public class Selection {

    private int n;
    private int z1;
    private int z2;
    private int names[];

    public int getN() {
        return n;
    }

    public void setN(int n) {
        this.n = n;
    }

    public int getZ1() {
        return z1;
    }

    public void setZ1(int z1) {
        this.z1 = z1;
    }

    public int getZ2() {
        return z2;
    }

    public void setZ2(int z2) {
        this.z2 = z2;
    }

    public int[] getNames() {
        return names;
    }

    public void setNames(int[] names) {
        this.names = names;
    }

    public void setName(int i, int name) {
        this.names[i] = name;
    }

    public Selection() {
    }

    public Selection(int n, int z1, int z2) {
        this.n = n;
        this.z1 = z1;
        this.z2 = z2;
        this.names = new int[n];
    }

    @Override
    public String toString() {
        return "Selection{" + "n=" + n + ", z1=" + z1 + ", z2=" + z2 + ", names=" + Arrays.toString(names) + '}';
    }

}
